package suanfa.ClassExam;

import java.util.Scanner;

/**
 * @Author JetZhang
 * @Date 2021/11/9
 */
public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] s = scanner.nextLine().split(" ");
        int x = Integer.parseInt(s[0]);
        int y = Integer.parseInt(s[1]);
        if (x != 0 && y != 0) {
            if (x > 0 && y > 0) {
                System.out.println("(" + x + "," + y + ") is on the first quadrant");
            } else if (y == 0) {
                System.out.println("(" + x + ",0) is on the x-axis");
            } else if (x > 0 && y < 0) {
                System.out.println("(" + x + "," + y + ") is on the forth quadrant");
            } else if (x == 0) {
                System.out.println("(0," + y + ") is on the y-axis");
            } else if (x < 0 && y > 0) {
                System.out.println("(" + x + "," + y + ") is on the second quadrant");
            } else if (x < 0 && y < 0) {
                System.out.println("(" + x + "," + y + ") is on the third quadrant");
            }
        } else {
            System.out.println("(0,0) is origin");
        }
    }
}
